home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xarchie-2.0.9 / types.h < prev    next >
C/C++ Source or Header  |  1995-06-18  |  1KB  |  52 lines

  1. /*
  2.  * types.h : Definitions of SearchType and SortType
  3.  *
  4.  * George Ferguson, ferguson@cs.rochester.edu, 4 Sep 1991.
  5.  * Version 2.0: 23 Apr 1993.
  6.  */
  7.  
  8. #ifndef TYPES_H
  9. #define TYPES_H
  10.  
  11. /* These codes correspond to Prospero key letters */
  12. #define GfExact        '='
  13. #define GfSubstr    'S'
  14. #define GfSubcase    'C'
  15. #define GfRegexp    'R'
  16. #define GfExactSubstr    's'
  17. #define GfExactSubcase    'c'
  18. #define GfExactRegexp    'r'
  19.  
  20. typedef char SearchType;
  21.  
  22. #define GfRSearchType    "SearchType"
  23. #define GfNExact    "exact"
  24. #define GfNSubstr    "substr"
  25. #define GfNSubcase    "subcase"
  26. #define GfNRegexp    "regexp"
  27. #define GfNExactSubstr    "exactsubstr"
  28. #define GfNExactSubcase    "exactsubcase"
  29. #define GfNExactRegexp    "exactregexp"
  30.  
  31. /* This puke is so the bloody converters work. Argh! */
  32. #define GfName        '\001'
  33. #define GfDate        '\002'
  34. #define GfWeight    '\003'
  35.  
  36. typedef char SortType;
  37.  
  38. #define GfRSortType    "SortType"
  39. #define GfNName        "name"
  40. #define GfNDate        "date"
  41. #define GfNWeight    "weight"
  42.  
  43. /* Since these are both char's we can use one constant for errors */
  44. #define GfError        '\0'
  45.  
  46. extern void initConverters();
  47. extern SearchType stringToSearchType();
  48. extern SortType stringToSortType();
  49. extern char *searchTypeToString(),*sortTypeToString();
  50.  
  51. #endif /* TYPES_H */
  52.